const TokenKey = 'gcp_token';
const OpridKey = 'gcp_oprid';
const OprnameKey = 'gcp_name';

export function getToken() {
    return localStorage.getItem(TokenKey);
}

export function setToken(token, info) {
    return localStorage.setItem(TokenKey, token);
}

export function setOprid(oprid) {
    return localStorage.setItem(OpridKey, oprid);
}

export function getOprid() {
    return localStorage.getItem(OpridKey);
}

export function removeToken() {
    return localStorage.removeItem(TokenKey);
}
export function setOprname(oprname) {
    return localStorage.setItem(OprnameKey, oprname);
}

export function getOprname() {
    return localStorage.getItem(OprnameKey);
}

